import request from '@/utils/request';
import {
    getUUID
} from '@/utils/utils';

export async function accountLogin(params) {
    return request('login', {
        method: 'POST',
        data: params,
    });
}
export async function getCaptcha(params) {
    const uuid = getUUID();
    sessionStorage.setItem('uuid', uuid);
    return request(`/captcha`, {
        params: {
            uuid: uuid
        },
        responseType: 'blob'
    });
}